<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]

    <script type="text/javascript">
        var grid;


        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [
                    {display: 'id', name: 'id', align: 'center', width: 100 },
                    {display: '标题', name: 'title', align: 'center', width: 100 },
                    {display: '种类', name: 'classname', align: 'center', width: 100 },
                    {display: '状态', name: 'status', align: 'center', width: 100 ,
                        render: function(row){
                            return row.status + (row.status == "0" ? '隐藏' : '显示');
                        }
                    },
                    {display: '排序', name: 'orderid', align: 'center', width: 120 },
                    {display: '发布时间', name: 'issueDate', align: 'center', width: 100,isdate:"true" },
                    {display: '修改时间', name: 'updateTime', align: 'center', isdate:"true" },
                    {display: '修改人', name: 'updatePerson', align: 'center', width: 100
                    },
                    {display: '修改',  align: 'center', width: 100,
                        render: function(row){
                            var html = '<input value="修改" style="cursor:pointer" type="button" onclick="f_change('+row.id+')">';
                            return html;

                        }
                    },
                    {display: '删除', align: 'center', width: 100,
                        render: function(row){
                            var html = '<input value="删除" style="cursor:pointer" type="button" onclick="f_delete('+row.id+')">';
                            return html;

                        }
                    }
                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });

            $(".l-toolbar").ligerToolBar({ items: [

                { text: '增加', click: f_change }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });
        function f_change(id){
            window.location.href =  base+'/admin/article/add.aspx?id='+id;
        }
        function f_delete(id){
            window.location.href  =  base+'/admin/article/delete.aspx?id='+id;
        }

    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
				<span>
					类型： [@u.select listKey="id"  headerKey="" headerValue="全部类型" listValue="category_name" headerButtom="false" list=LoanCategoryUtils.getLoanCategoryList()
                name="loanCategory" value="${(loanCategory)!''}" /]
				</span>
				<span>
					用户名：<input type="text" name="memberName"  />
				</span>

            申请时间：<input type="text" id="begin_date" name="begin_date"
                        class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
            -
            <input type="text" id="endDate" name="end_date"
                   class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
            <input type="button" class="button" value="搜索" id="search"/>
            <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>